package com.lnu_devteam.zongce.common;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * @author xbaozi
 * @version 1.0
 * @classname PageRequest
 * @date 2023-03-26  13:41
 * @description 分页请求参数
 */
@ApiModel(description = "分页请求参数")
@Data
public class PageRequest {
    /**
     * 当前页，默认1
     */
    @ApiModelProperty("当前页，默认1")
    private int currentPage = 1;

    /**
     * 每页数据条数，默认10
     */
    @ApiModelProperty("每页数据条数，默认10")
    private int pageSize = 10;

    /**
     * 关键字搜索
     */
    @ApiModelProperty(value = "关键字搜索", required = false)
    private String key;

    /**
     * 排序字段
     */
    @ApiModelProperty(value = "排序字段", required = false)
    private String sortField;

    /**
     * 排序顺序，默认顺序asc
     */
    @ApiModelProperty(value = "排序顺序，默认顺序asc", required = false)
    private String sortOrder;
}
